<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>{L('cname')}- {L('member','','member').L('manage_center')}</title>
<link href="{CSS_PATH}reset.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}member.css" rel="stylesheet" type="text/css" />
<link href="{CSS_PATH}table_form.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{JS_PATH}jquery.min.js"></script>
<script type="text/javascript" src="{JS_PATH}member_common.js"></script>
{if isset($show_validator)}
<script type="text/javascript" src="{JS_PATH}formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js" charset="UTF-8"></script>
{/if}

<!--引入AdminLTE css和js问价-->
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
        <!-- bootstrap 3.0.2 -->
        <link href="{LTE_PATH}css/bootstrap.min.css" rel="stylesheet" type="text/css" />
        <!-- font Awesome -->
        <link href="{LTE_PATH}css/font-awesome.min.css" rel="stylesheet" type="text/css" />
        <!-- Ionicons -->
        <link href="{LTE_PATH}css/ionicons.min.css" rel="stylesheet" type="text/css" />
        <!-- Morris chart -->
        <link href="{LTE_PATH}css/morris/morris.css" rel="stylesheet" type="text/css" />
        <!-- jvectormap -->
        <link href="{LTE_PATH}css/jvectormap/jquery-jvectormap-1.2.2.css" rel="stylesheet" type="text/css" />
        <!-- Date Picker -->
        <link href="{LTE_PATH}css/datepicker/datepicker3.css" rel="stylesheet" type="text/css" />
        <!-- Daterange picker -->
        <link href="{LTE_PATH}css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
        <!-- bootstrap wysihtml5 - text editor -->
        <link href="{LTE_PATH}css/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css" rel="stylesheet" type="text/css" />
        <!-- Theme style -->
        <link href="{LTE_PATH}css/AdminLTE.css" rel="stylesheet" type="text/css" />
        
               <!-- jQuery 2.1.1 -->
        <script src="{LTE_PATH}js/jquery-2.1.1.min.js" type="text/javascript"></script>
        <!-- jQuery UI 1.10.3 -->
        <script src="{LTE_PATH}js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
        <!-- Bootstrap -->
        <script src="{LTE_PATH}js/bootstrap.min.js" type="text/javascript"></script>
        <!-- Morris.js charts -->
        <script src="{LTE_PATH}js/raphael-min.js"></script>
        <script src="{LTE_PATH}js/plugins/morris/morris.min.js" type="text/javascript"></script>
        <!-- Sparkline -->
        <script src="{LTE_PATH}js/plugins/sparkline/jquery.sparkline.min.js" type="text/javascript"></script>
        <!-- jvectormap -->
        <script src="{LTE_PATH}js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js" type="text/javascript"></script>
        <script src="{LTE_PATH}js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js" type="text/javascript"></script>
        <!-- jQuery Knob Chart -->
        <script src="{LTE_PATH}js/plugins/jqueryKnob/jquery.knob.js" type="text/javascript"></script>
        <!-- daterangepicker -->
        <script src="{LTE_PATH}js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
        <!-- datepicker -->
        <script src="{LTE_PATH}js/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>
        <!-- Bootstrap WYSIHTML5 -->
        <script src="{LTE_PATH}js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
        <!-- iCheck -->
        <script src="{LTE_PATH}js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
<style>
	.ename{
		font-family:'Microsoft YaHei',SimHei;
		font-size: 14px;
		padding-right: 8px;
	}
	.cname{
		font-size: 14px;
		font-weight: bold;
		color:#CED9E7;
	}
</style>
</head>
{php $siteinfo = siteinfo($this->memberinfo['siteid']);}
	{php $this->menu_db = pc_base::load_model('member_menu_model');}
	{php $menu = $this->menu_db->select(array('display'=>1, 'parentid'=>0), '*', 20 , 'listorder');}
	<body class="skin-blue">
        <!-- header logo: style can be found in header.less -->
        <header class="header">
            <a href="index.html" class="logo">
                <!-- Add the class icon to your logo image or logo icon to add the margining -->
                
                <span class="ename">{L('ename')}{L('version')}</span><span class="cname">{L('cname')}</span>
            </a>
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-static-top" role="navigation">
                <!-- Sidebar toggle button-->
                <a href="#" class="navbar-btn sidebar-toggle" data-toggle="offcanvas" role="button">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <div class="navbar-right">
                    <ul class="nav navbar-nav">
                        <!-- Messages: style can be found in dropdown.less-->
                       
                        <!-- Notifications: style can be found in dropdown.less -->
                     
                        <!-- Tasks: style can be found in dropdown.less -->
                       
                        <!-- User Account: style can be found in dropdown.less -->
<!--//<script type="text/javascript">document.write('<iframe src="{APP_PATH}index.php?m=member&c=index&a=mini&forward='+encodeURIComponent(location.href)+'&siteid={get_siteid()}" allowTransparency="true"  frameborder="0" scrolling="no"></iframe>')</script>-->	
            <li id="admin_header" class="dropdown user user-menu">
            
            	<a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="glyphicon glyphicon-user"></i>
                                <span>{L('hellow')} {$user['nickname']} <i class="caret"></i></span>
                            </a>
                            <ul class="dropdown-menu">
                               
                                <li class="user-header bg-light-blue">
                                    <img src="{$avatar[90]}" class="img-circle" alt="User Image" />
                                    <p>
                                        {$user['nickname']}- {$groupname['name']}{L('hellow')}
                                        <small>注册日期：{date('Y-m-d',$user['regdate'])}</small>
                                    </p>
                                </li>
                             
                                <!--<li class="user-body">
                                    <div class="col-xs-4 text-center">
                                        <a href="#">粉丝</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">关注</a>
                                    </div>
                                    <div class="col-xs-4 text-center">
                                        <a href="#">好友</a>
                                    </div>
                                </li>-->
                         
                                <li class="user-footer">
                                  
                                    <div class="pull-right">
                                        <a href="{APP_PATH}index.php?m=member&c=index&a=logout&forward={urlencode($_GET['forward'])}&siteid={$siteid}" target="_top" class="btn btn-default btn-flat">注销登录</a>
                                    </div>
                                </li>
                            </ul>
            
            </li>            	
 
                     
                    </ul>
                </div>
            </nav>
        </header>
        <div class="wrapper row-offcanvas row-offcanvas-left">
            <!-- Left side column. contains the logo and sidebar -->
            <aside class="left-side sidebar-offcanvas">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- Sidebar user panel -->
                    <div class="user-panel">
                    	{if $_username}
                        <div class="pull-left image">
                            <img src="{get_memberavatar($_userid,90,90)}" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p>{L('hellow')} {$user['nickname']} {$_userid} </p>

                            <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                        </div>
                        	{else}
                        	   <div class="pull-left image">
                            <img src="{IMG_PATH}/member/nophoto.gif" class="img-circle" alt="User Image" />
                        </div>
                        <div class="pull-left info">
                            <p>{L('hellow')} {L('viewer')}</p>

                            <a href="#"><i class="fa fa-circle text-info"></i> 离线</a>
                        </div>
                        {/if}
                    </div>
                    <!-- search form -->
                    <form action="#" method="get" class="sidebar-form">
                        <div class="input-group">
                            <input type="text" name="q" class="form-control" placeholder="搜索..."/>
                            <span class="input-group-btn">
                                <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                            </span>
                        </div>
                    </form>
                    <!-- /.search form -->
                    <!-- sidebar menu: : style can be found in sidebar.less -->
          <!--菜单显示-->          
        {pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
        	<ul class="sidebar-menu">
			<li class="active"><a href="{siteurl($siteid)}"> <i class="fa fa-dashboard"></i> <span>首页</span></a></li>
			{loop $data $r}
			<!--判断是否有子栏目-->
			{if $r[child]}
			 <li class="treeview">
                <a href="#" >
                    <i class="fa {$r[caticon]}"></i> <span>{$r[catname]}</span> 
                    <i class="fa fa-angle-left pull-right"></i>
                </a>
				<!--二级-->
				<ul class="treeview-menu">
					{loop subcat($r['catid']) $c2}
		     			<li><a href="{$c2['url']}"><i class="fa {$c2['caticon']}"></i> {$c2['catname']}
		     			{if $r[items]>0}                    
                        <small class="badge pull-right bg-yellow">{$c2[items]}</small>
                    	{/if}
		     			</a></li>
		      		{/loop}
				</ul>	
				<!--二级-->
				</li>
			{else}
				 <li>
                    <!--<a href="#" onclick="linkpost('{$r[url]}')">-->
                    <a href="{$r[url]}">
                        <i class="fa {$r[caticon]}"></i> <span>{$r[catname]}</span> 
                        {if $r[items]>0}                    
                        <small class="badge pull-right bg-yellow">{$r[items]}</small>
                    	{/if}
                    </a>    
				</li>	
			{/if}
			 
			{/loop}
			<!--单网页显示 start-->
			{pc:content action="category" catid="1" num="15" siteid="$siteid" order="listorder ASC"}
				{loop $data $ra}
					<li>
						<a href="{$ra[url]}">
							<i class="fa {$ra[caticon]}"></i> <span>{$ra[catname]}</span>
					
						</a>
					</li>
				{/loop}
			{/pc}
			<!--<li>
				<a href="{APP_PATH}index.php?m=link">
					<i class="fa fa-link"></i> <span>友情链接</span>
			
				</a>
			</li>-->
			<!--单网页显示 end-->
            </ul>
        {/pc}
		{php echo runhook('glogal_menu')}
		



                </section>
                <!-- /.sidebar -->
            </aside>
<!--<div id="header">

    <div class="link">{L('hellow')} {get_nickname()}<span> | </span>
	<a href="{APP_PATH}index.php?m=member&c=index&a=logout">{L('logout')}</a>
	<span> | </span><a href="{$siteinfo['domain']}">{L('index')}</a> </div>
	<div class="nav-bar">
    	<map>
        	<ul class="nav-site cu-span">
				{loop $menu $k $v}
				<li>
					{if $v['isurl']}
						<a href="{$v['url']}" target="_blank"><span>{L($v['name'], '', 'member_menu')}</span></a>
					{else}
						<a href="index.php?m={$v['m']}&c={$v['c']}&a={$v['a']}&{$v['data']}" {if $k==$_GET['t']}class="on"{/if}><span>{L($v['name'], '', 'member_menu')}</span></a>
					{/if}
					</li>
					<li class="line">|</li>
				{/loop}
            </ul>
        </map>
    </div>
</div>-->